package com.fengqianrun.bootframework.service.file;

import com.aizuda.easy.security.domain.Rep;
import com.aizuda.easy.security.exp.impl.BasicException;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;


public interface FileService {

    Rep<String> uploadLocal(MultipartFile file) throws IOException;

    Rep<String> uploadPublic(MultipartFile file) throws IOException;

    Rep<String> uploadStrategy(MultipartFile file,String path, HttpServletRequest httpServletRequest) throws IOException, BasicException;

}
